package afcp.alumni.util;

import java.math.BigInteger;
import java.security.SecureRandom;

public class Util {
	
	private static SecureRandom random = null;
	public static String generatePassword() {
		return generate(60);
	}
	public static String generateId() {
		return generate(150);
	}
	private static String generate(int bits) {
		if (random == null) {
			random = new SecureRandom();
		}
		return new BigInteger(bits, random).toString(Character.MAX_RADIX);
	}

}
